/**
 * 将该button的点击事件设为提交该表单
 */

function submitFormByButton(buttonId,formId,modifyPhoneId){
	$("#"+buttonId).click(function(){
		var phone = $('#'+modifyPhoneId).val();
		var reg_phone = /(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[0-9]{10}$)/;
		if(phone !="" && reg_phone.test(phone))
			$("#"+formId).submit();
		else
			alert("请输入符合格式的电话号码")
			return;
	} );
}